<template>
    <view class="bg-content">
        <shoppingCart v-if="show"></shoppingCart>
    </view>
</template>

<script>

    import shoppingCart from '@/components/shopping-cart.vue'

    export default {
        data() {
            return {
                isMounted: false,
                show: false
            }
        },
        components: {
            shoppingCart
        },
        mounted() {
            this.isMounted = true;
            this.show = false;
            this.$nextTick(() => {
                this.show = true;
            });
        },
        methods: {
            _onShow() {
                const _self = this;
                if (this.isMounted) {
                    this.show = false;
                    this.$nextTick(() => {
                        this.show = true;
                    });
                }
            },
        }
    }
</script>

<style lang="scss" scoped>
</style>
